<!-- 页脚 -->
<template>
  <div class="footer">
    <div class="footerBg"></div>
    <div class="footerBox basePageBox">
      <div class="footerLeft">
        <div class="footer__link-wrap">
          <a
            class="footer__link-wrap-i"
            v-for="(item, index) in options"
            :key="`footer-opt${index}`"
            :href="item.url"
            target="_blank"
          >{{ item.name }}</a>
        </div>
        <div class="footerInfo">主办：长江出版传媒股份有限公司</div>
        <div class="footerInfo">承办：湖北博盛数字教育服务有限公司</div>
        <div class="footerInfo">服务邮箱：services@dodoedu.com</div>
      </div>
      <div class="footerRight">
        <div class="footerRightLeft">
          <div class="footerTitle">关注多多社区</div>
          <img class="qrCode" src="@/assets/qrcode_wx_64.png" alt="" srcset="" />
        </div>
        <div class="footerRightRgt">
          <div class="footerTitle">企业介绍</div>
          <div class="footerInfo" @click="jump('/about')">关于我们</div>
          <div class="footerInfo" @click="jump('/news')">新闻动态</div>
        </div>
      </div>
    </div>
    <div class="footer-bottom">经营许可证：鄂B2-20140003：鄂ICP备18011310号-2</div>
  </div>
</template>

<script>
import { footerOutLink } from '@/utils/baseConfig';
export default {
  name: 'PageFooter',
  data() {
    return {
      options: footerOutLink
    }
  },
  methods: {
    jump(path) {
      this.$router.push(path)
    }
  }
};
</script>

<style scoped lang="scss">
.footer {
  width: 100%;
  min-width: $page-min-width;
  height: 280px;
  position: relative;
  .footerBg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 280px;
    background-image: url('../assets/footerBg.png');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
  }
  .footerBox {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0px;
    display: flex;
    justify-content: space-between;
    padding: 72px 158px 0 150px;
    .footerLeft {
      text-align: left;
      color: $text-title-color;
      .footerTitle {
        font-size: 20px;
        font-weight: 600;
        line-height: 28px;
        margin-bottom: 20px;
      }
      .footerInfo {
        font-size: 12px;
        font-weight: 400;
        line-height: 24px;
      }
    }
    .footerRight {
      color: $text-title-color;
      display: flex;
      .footerRightLeft {
        margin-right: 96px;
      }
      .footerTitle {
        font-size: 14px;
        font-weight: 600;
        line-height: 20px;
        margin-bottom: 18px;
      }
      .footerInfo {
        font-size: 12px;
        font-weight: 400;
        line-height: 17px;
        cursor: pointer;
        margin-bottom: 6px;
      }
      .qrCode {
        width: 64px;
        height: 64px;
      }
    }
  }
  &__link-wrap {
    display: flex;
    font-size: 14px;
    margin-bottom: 18px;
    &-i {
      margin-right: 16px;
      color: #333;
      text-decoration: none;
      &:hover {
        color: $primary-color;
      }
    }
  }
  &-bottom {
    position: absolute;
    bottom: 18px;
    left: 0;
    width: 100%;
    height: 32px;
    line-height: 32px;
    text-align: center;
    font-size: 12px;
  }
}
</style>
